package com.gmall.product.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gmall.common.result.Result;
import com.gmall.model.product.BaseTrademark;
import com.gmall.product.service.BaseTrademarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("product/baseTrademark")
public class BaseTrademarkController {

    @Autowired
    BaseTrademarkService trademarkService;

    @GetMapping("{pageNo}/{pageSize}")
    public Result<Page<BaseTrademark>> query(@PathVariable Long pageNo, @PathVariable Long  pageSize,
                                             @RequestBody String body) {

        return trademarkService.query(pageNo,pageSize);
    }
}
